define(function(require, exports, module) {
	'use strict';
    
    var rk = require('rk');

    $.widget('rk.oaPanelCtrl', {
            _create: function(){
                var me = this;
                var elem = me.element;     
      
            },
            _init: function(){
                var me = this;
                var elem = me.element;
            },

            getPanelHeader: function(){
                var me = this;
                var elem = me.element;
                return elem.find('>.oa-panel-header');
            },
            getPanelContent: function(){
                var me = this;
                var elem = me.element;
                return elem.find('>.oa-panel-body > .oa-panel-content');
            },
            getPanelFooter: function(){
                var me = this;
                var elem = me.element;
                return elem.find('>.oa-panel-footer');
            },

            getCurtain: function(opt){
                rk.oa.getCurtainElem(opt);
            },
            getPanel: function(opt){
              return  rk.oa.getPanelElem(opt);
            },
            getContent: function(opt){
                rk.oa.getContentElem(opt);
            },

            removeCurtain: function(opt){
            	rk.oa.removeCurtain(opt);
            },
            popupCurtain: function(opt){
            	rk.oa.popupCurtain(opt);
            },

            popupContent: function(opt){
            	rk.oa.popupContent(opt);
            },
            removeContent: function(opt){
            	rk.oa.removeContent(opt);
            },
            closeMe: function(){
            	rk.oa.closePanel();
            }
    });
});